package com.anxin.registerManagement.bean.persist;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("学院类")
public class Academy extends CommonData {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("学院id")
    private Integer id;

    @NotBlank(message = "学院名称不能为空")
    @ApiModelProperty("学院名称")
    private String academyName;

    @NotNull(message = "辅导员不能为空")
    @ApiModelProperty("辅导员id")
    private Integer counselorId;

    @NotNull(message = "院长不能为空")
    @ApiModelProperty("院长id")
    private Integer deanId;

    @NotNull(message = "副院长不能为空")
    @ApiModelProperty("副院长id")
    private Integer associateDeanId;

}
